package ai.people.netmon.framework.domain.telegram.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author xing.wei
 * @since 2022-01-06 17:07:14
 */
@TableName(value = "users", schema = "telegram")
@Data
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = false)
public class Users implements Serializable {

    private static final long serialVersionUID=1L;

    
    @TableId(value = "id")
    private Long id;

    
    @TableField(value = "username")
    private String username;

    
    @TableField(value = "phone")
    private String phone;

    
    @TableField(value = "first_name")
    private String firstName;

    
    @TableField(value = "last_name")
    private String lastName;

    @TableField(value = "bot")
    private Boolean bot;

    @TableLogic
    @TableField(value = "deleted")
    private Boolean deleted;

    
    @TableField(value = "min")
    private Boolean min;

    
    @TableField(value = "access_hash")
    private Long accessHash;

    
    @TableField(value = "_origin")
    private String Origin;

    
    @TableField(value = "contacts")
    private List contacts;

    
    @TableField(value = "metadata")
    private Object metadata;

}